/**
 * @description: 路由、菜单数据
 * name: 路由名称，可选项，默认path路径使用'.'拼接
 * meta.title: 路由标题
 * meta.menu: 是否在菜单栏中展示，默认展示
 * meta.autoExpand: 是否在菜单栏中展开，默认折叠
 * meta.keepAlive: 是否使用keep-alive缓存，默认不缓存
 * meta.icon: 是否显示图标，默认不显示
 * @return {*}
 */
export const routes = [
  // {
  //   path: '/index',
  //   meta: { title: '首页', icon: true },
  //   component: 'views/home/index.vue',
  // },
  {
    path: '/materal-center',
    component: 'views/materal-center/materal-center.vue',
    meta: { title: '领取素材', icon: true },
  },

  {
    path: '/materal-get',
    component: 'views/materal-get/materal-get.vue',
    meta: { title: '我的领取', icon: true },
  },

  {
    path: '/score-list',
    component: 'views/score-list/score-list.vue',
    meta: { title: '积分列表', icon: true },
  },

  {
    path: '/user-info',
    component: 'views/user-info/user-info.vue',
    meta: { title: '个人中心', icon: true },
  },
  {
    path: '/user-manage',
    meta: { title: '素材中心', autoExpand: true, icon: true },
    children: [
      {
        path: '/user-manage/user-images-list',
        component: 'views/user-manage/user-images-list.vue',
        meta: { title: '我的图像' },
        children: [
          {
            path: '/user-manage/user-images-list/user-batch-upload',
            component: 'views/user-manage/user-batch-upload.vue',
            meta: { title: '批量上传图像', menu: false },
          },
        ],
      },
      {
        path: '/user-manage/user-text-list',
        component: 'views/user-manage/user-text-list.vue',
        meta: { title: '我的文案' },
        children: [
          {
            path: '/user-manage/user-text-list/user-text-create',
            component: 'views/user-manage/user-text-create.vue',
            meta: { title: '创建文案', menu: false },
          },
        ],
      },
      {
        path: '/user-manage/user-materal-list',
        component: 'views/user-manage/user-materal-list.vue',
        meta: { title: '我的素材' },
        children: [
          {
            path: '/user-manage/user-materal-list/user-materal-create',
            component: 'views/user-manage/user-materal-create.vue',
            meta: { title: '创建素材', menu: false },
          },
        ],
      },
    ],
  },

  // {
  //   path: '/prototype-generator',
  //   component: 'views/prototype-generator/prototype-generator.vue',
  //   meta: { title: '样机生成器', icon: true },
  // },

  {
    path: '/user-cover-generator',
    component: 'views/user-cover-generator/user-cover-generator.vue',
    meta: { title: '封面生成器', icon: true },
  },

  {
    path: '/manage-center',
    meta: { title: '我的管理', autoExpand: true, icon: true, isAdmin: true },
    children: [
      {
        path: '/manage-center/images-list',
        component: 'views/manage-center/images-list.vue',
        meta: { title: '公共图像列表' },
        children: [
          {
            path: '/manage-center/images-list/batch-upload',
            component: 'views/manage-center/batch-upload.vue',
            meta: { title: '批量上传图像', menu: false },
          },
        ],
      },
      {
        path: '/manage-center/text-list',
        component: 'views/manage-center/text-list.vue',
        meta: { title: '公共文案列表' },
        children: [
          {
            path: '/manage-center/text-list/text-create',
            component: 'views/manage-center/text-create.vue',
            meta: { title: '上传文案', menu: false },
          },
        ],
      },
      {
        path: '/manage-center/materal-list',
        component: 'views/manage-center/materal-list.vue',
        meta: { title: '公共素材列表' },
        children: [
          {
            path: '/manage-center/materal-list/materal-create',
            component: 'views/manage-center/materal-create.vue',
            meta: { title: '创建公共素材', menu: false },
          },
        ],
      },
      {
        path: '/manage-center/cover-generator',
        component: 'views/manage-center/cover-generator.vue',
        meta: { title: '公共封面生成器' },
      },
      {
        path: '/manage-center/score-list',
        component: 'views/manage-center/score-list.vue',
        meta: { title: '用户积分列表' },
      },
      {
        path: '/manage-center/user-list',
        component: 'views/manage-center/user-list.vue',
        meta: { title: '用户列表' },
      },
      {
        path: '/manage-center/user-log',
        component: 'views/manage-center/user-log.vue',
        meta: { title: '用户日志' },
      },
      {
        path: '/manage-center/images-temp',
        component: 'views/manage-center/images-temp.vue',
        meta: { title: '图像模版' },
      },
      {
        path: '/manage-center/error-correc',
        component: 'views/manage-center/error-correc.vue',
        meta: { title: '纠错' },
      },
      {
        path: '/manage-center/mall-list',
        component: 'views/manage-center/mall-list.vue',
        meta: { title: '小程序商品列表' },
      },
      {
        path: '/manage-center/mall-exchange-list',
        component: 'views/manage-center/mall-exchange-list.vue',
        meta: { title: '小程序商品兑换' },
      },
      {
        path: '/manage-center/share-card-list',
        component: 'views/manage-center/share-card-list.vue',
        meta: { title: '小程序分享卡列表' },
      },
    ],
  },
];
